script Name: FM_2_Actinic_V1.vbs

Description: 
------------

The file will read Fashion Matrix Data from a CSV file & generate an Actinic Hierarchical file for import. 


Input File:
-----------

The CSV Input file  is as follows: 

1st Row Holds the the Headings & subsequent rows relate to the details of the Physical Products.  

The Column are two types : Mandatory & Optional of which the 1st 13 fields are Mandatory as follows: 

Style        : Product Ref of the top level Fashion Matrix Style e.g Fitflop Mens Dass (016) could be FFL-016 
Description  : Description of the style e.g FITFLOP Mens Dass
Substyle     : Product Ref of the style in colour e.g Fitflop Mens Dass(016) in Black(001) could be FFL-016001.
SubStyleDesc : Description of the style e.g FITFLOP Mens Dass in Black 
Colour       : Colour for this line of physical Product e.g Black 
Size         : Size for this line of physical Product e.g UK10
HTMLColour   : HTMLfor colour e.g 001 BLACK 
HTMLSize     : HTML for Size  e.g. UK10
ProductRef   : Product Ref of the physical Product
ProductDesc  : Product Desc of the product e.g Fitflop Mens Dass(016) in Black(001) Size UK10
Price        : Price of the product in pence i.e. 49.99 is 4999 
Cost         : Price of the product in pence i.e. 24.99 is 2499
Quantity     : Quantity in stock 
 

Optional Fields/Columns : 
-------------------------

Any field that is defined in the  Actinic product can be added including Custom Variables e.g Image Filename, Brand, EAN, UPC, etc.  

Format for the Heading is 'FieldName=DefaultValue' where Fieldname is name of the field as seen by Actinic when you export the Catalog e.g. 

Image Filename,Can be Ordered Online,Max Quantity Orderable,Min Quantity Orderable, BRAND, EAN

Default Value is what the Top level Style & Substyle will hold. 

2nd & Subsequent rows will hold the real data for that Product Ref  

example for Brand & EAN are as follows: 
Row 1 holds BRAND="", EAN="" implying Both Brand & EAN are defaulted to NULL
Row 2 onwards will have the phhysical values. 


Installation: 
-------------

Copy the Script file input into any folder. Best to keep it in its own folder 

Usage: 
------
Double click on the script. It will prompt for the input file name.
 
Files: 
-------

Following Files are created: 

Output_file.csv : This is output file for input to the Hierarchical Import into Actinic
log.txt         : Log file showing what is been provcesssed. -Checj for errors. 
temp1.csv       : Used to hold the formatted output having read each record. 
temp2.csv       : Used for sorting temp1. 


NOTES: 
-------

USE Excel to create & formulate the records & then save as CSV File. 

IMPORTANT: 
===========

Make sure the CSV file is opened in WORDPAD & then nsaved again. This gets rid of format effectors left by EXCEL. 



Usage: Double Click the script file. 

Prompts for input file 

 
